__author__ = 'skynet'
from Manager.settings import connectMongo
class League:
    league={}
    def __init__(self, leagueId, name, countryId, level):
        self.league['leagueId']=leagueId
        self.league['name']=name
        self.league['countryId']=countryId
        self.level=level

    def save(self):
        pass
db=connectMongo['sdf']
col=db['gfg']
l=League(1,2,3,4)
col.save(l.league)
for i in col.find():
    print i